import axios from 'axios'
import { dbIp } from './config.js'
var ip = dbIp

export function getVideoComment (param){
    return axios({
        method: "get",
        url: ip+"/comment/getVideoComment",
        params: {
            video_id: param.video_id
        }
    });
}

export function addVideoComment (param){
    return axios({
        method: "post",
        url: ip+"/comment/addVideoComment",
        data: {
            video_id: param.video_id,
            user_id: param.user_id, //目前默认为游客
            toComment: param.toComment,
            info: param.info
        }
    });
}